From: Matthias Clasen Date: Sat, 5 Jan 2013 03:00:06 +0000 (-0500) Subject: Use the right getter X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~5106 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=0e9ddd3b99835e846e6b6f668d748e3d567584ab;p=gnome-shell.git Use the right getter org.gnome.desktop.screensaver lock-delay is an integer, not a boolean, so don't use get_bool() on it. https://bugzilla.gnome.org/show_bug.cgi?id=691170 --- diff --git a/js/ui/screenShield.js b/js/ui/screenShield.js index 81d9655ee..7c6fcd5ce 100644 --- a/js/ui/screenShield.js +++ b/js/ui/screenShield.js @@ -641,7 +641,7 @@ const ScreenShield = new Lang.Class({ let elapsedTime = (GLib.get_monotonic_time() - this._activationTime) / 1000000; let shouldLock = lightboxWasShown && this._settings.get_boolean(LOCK_ENABLED_KEY) && - (elapsedTime >= this._settings.get_boolean(LOCK_DELAY_KEY)); + (elapsedTime >= this._settings.get_int(LOCK_DELAY_KEY)); if (shouldLock || this._isLocked) { this.lock(false); } else if (this._isActive) {